with flying colors, pass with
Also,
come through with flying colors
. Win, succeed, as in
She came through the bar exam with flying colors
. This expression alludes to a victorious ship sailing with its flags high.
[
Late 1600s
]